package com.drcurd.service;

import com.drcurd.entity.Employee;
import com.drcurd.dto.EmployeeQueryDTO;

import java.util.List;

public interface EmployeeService {
    
    // 查询所有员工
    List<Employee> getAllEmployees();
    
    // 根据ID查询员工
    Employee getEmployeeById(Long id);
    
    // 新增员工
    boolean addEmployee(Employee employee);
    
    // 更新员工
    boolean updateEmployee(Employee employee);
    
    // 删除员工
    boolean deleteEmployee(Long id);
    
    // 条件查询员工
    List<Employee> getEmployeesByCondition(EmployeeQueryDTO queryDTO);
    
    // 条件查询总数
    int getEmployeeCountByCondition(EmployeeQueryDTO queryDTO);
    
    // 分页查询
    List<Employee> getEmployeesByPage(Integer page, Integer size);
    
    // 获取总数
    int getEmployeeCount();
} 